package com.jww.cloud.auth.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 附件配置信息
 *
 * @author wanyong
 * @date 2018-12-20 10:22
 */
@Configuration
@ConfigurationProperties(prefix = JwtProperties.JWT_PREFIX)
public class JwtProperties {

    public static final String JWT_PREFIX = "jwt";

    /**
     * 签发者
     */
    @Getter
    @Setter
    private String issuer;

    /**
     * 密钥
     */
    @Getter
    @Setter
    private String secret;

    /**
     * tokenHeader
     */
    @Getter
    @Setter
    private String tokenHeader;

    /**
     * 前缀
     */
    @Getter
    @Setter
    private String tokenPrefix;

    /**
     * 过期时间
     */
    @Getter
    @Setter
    private Integer expiration;
}
